#ifndef TEST_H
#define TEST_H

#include <QMainWindow>
#include <rsa.h>
namespace Ui {
class test;
}

class test : public QMainWindow
{
    Q_OBJECT

public:
    explicit test(QWidget *parent = 0);
    ~test();
    QString MD5encryption(QString s);//MD5
    void createkey(QString* s1,QString* s2,QString* s3);//密钥生成，生成RSA公钥、私钥、和AES密钥
    QByteArray intTo4ByteArray(int i);
    int ByteArray4ToInt(const QByteArray &bytes);
    QByteArray rslt;
    rsa t1;
private slots:
    void on_pushButton_2_clicked();//关闭界面
    void on_pushButton_clicked();   //开始测试
    void on_pushButton_3_clicked();

private:
    Ui::test *ui;
};

#endif // TEST_H
